package com.hellobike.haxing.modules.product.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import com.hellobike.haxing.common.annotation.Dict;
import com.baomidou.mybatisplus.annotation.TableLogic;
/**
 * @Description: 商品定时上下架任务管理
 * @Author: haxing-boot
 * @Date:   2020-12-05
 * @Version: V1.0
 */
@Data
@TableName("t_product_online_task")
public class ProductOnlineTask implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
        private Integer id ;
	/**任务名称*/
	@Excel(name = "任务名称", width = 15)
        private String name ;
	/**任务开始时间*/
	@Excel(name = "任务开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date startTime ;
	/**任务结束时间*/
	@Excel(name = "任务结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date endTime ;
	/**任务类型，1每天轮回，到上线时段上线，下线时间到下线，2开始时间上线，结束时间时下线*/
	@Excel(name = "任务类型，1每天轮回，到上线时段上线，下线时间到下线，2开始时间上线，结束时间时下线", width = 15)
        private Integer schedulerType ;
	/**onlineHour*/
	@Excel(name = "onlineHour", width = 15)
        private Integer onlineHour ;
	/**offlineHour*/
	@Excel(name = "offlineHour", width = 15)
        private Integer offlineHour ;
	/**onlineTime*/
	@Excel(name = "onlineTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date onlineTime ;
	/**offlineTime*/
	@Excel(name = "offlineTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date offlineTime ;
	/**createTime*/
	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date createTime ;
	/**updateTime*/
	@Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date updateTime ;
	/**createBy*/
	@Excel(name = "createBy", width = 15)
        private Integer createBy ;
	/**updateBy*/
	@Excel(name = "updateBy", width = 15)
        private Integer updateBy ;
	/**deleted*/
	@Excel(name = "deleted", width = 15)
          @TableLogic
           private Integer deleted ;
	/**status*/
	@Excel(name = "status", width = 15)
        private Integer status ;
}
